package com.sihai.ehr.model.sys;

import com.sihai.core.BaseEntity;
import com.sihai.ehr.model.biz.Auditing;
import com.sihai.ehr.model.biz.AuditingBase;

import javax.persistence.*;

/**
 * @author wxn
 * @since 12-5-27 16:10
 *
 *  组织结构审核表
 */
@Entity
@DiscriminatorValue("audit_organization")
public class OrganizationAuditing extends AuditingBase {

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "organization_id")
    private Organization organization; /* 组织结构 */

    public Organization getOrganization() {
        return organization;
    }

    public void setOrganization(Organization organization) {
        this.organization = organization;
    }
}
